import {observer} from "mobx-react-lite"
function Counter({counterStore}) {
  console.log(counterStore)
  return (
    <div>
      <h2>{counterStore.count}</h2>
      <button onClick={counterStore.increment}>+</button>
      <button onClick={counterStore.rest}>重置</button>
    </div>
  )
}

export default observer(Counter)